<?php

use think\facade\Route;

Route::group('promo', function () {
    Route::get('page', 'page');                                    //虚码活动列表
    Route::get('list', 'list');                                    //虚码活动列表
    Route::get('info', 'info');                                    //虚码活动详情
    Route::post('save', 'save');                                   //虚码活动编辑
    Route::post('del', 'del');                                     //虚码活动删除
    Route::post('edit_status', 'edit_status');                     //修改虚码活动状态
    Route::post('edit_all_status', 'edit_all_status');             //刷新活动状态，禁用已失效活动
})->prefix('virtual/');

Route::group('promo_product', function () {
    Route::get('page', 'product_page');                             //虚码活动商品列表
    Route::post('save', 'product_save');                            //虚码活动商品编辑
    Route::post('del', 'product_del');                              //虚码活动商品删除
})->prefix('virtual/');

Route::group('promo_special', function () {
    Route::get('page', 'special_page');                             //虚码活动特殊规则列表
    Route::get('info', 'special_info');                             //虚码活动特殊规则详情
    Route::post('save', 'special_save');                            //虚码活动特殊规则编辑
    Route::post('del', 'special_del');                              //虚码活动特殊规则删除
    Route::post('edit_status', 'edit_special_status');              //修改虚码活动特殊规则状态
})->prefix('virtual/');


Route::group('promo_audit', function () {
    Route::get('page', 'virtual_page');                             //虚码活动审核列表
    Route::get('info', 'virtual_info');                             //虚码活动详情
    Route::post('audit', 'virtual_audit');                             //虚码提交
    Route::get('excel_send', 'virtual_excel_send');                 //虚码导出

})->prefix('VirtualUsedLog/');
